package application.models.datalayer;
/**
 * This enumeration contains valid operators. Currently supporting three: '<' , '=' and '>'
 * 
 * @author Philip Rasmussen & Morten Therkildsen
 */
public enum Operator{
	  
	EQUALS("="), LESS("<"), GREATER(">"), LESS_OR_EQUAL("<="), GREATER_OR_EQUAL(">=");
	
	private String sqlString;
	 
	Operator(String sqlOperator){
		
		sqlString = sqlOperator;
	}
	
	/**
	 * Returns a string representation of the SQL compliant operator
	 * @return String representation of the SQL compliant operator
	 */
	public String toSql(){
		
		return sqlString;
	}
}